package com.question_barrier.vo.barrier;

import com.question_barrier.vo.question.Question;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
@Data
@ApiModel("用户的闯关结果")
public class BarrierResult {
    @ApiModelProperty("用户openId")
    private String openId;
    @ApiModelProperty("年级")
    private String grade;
    @ApiModelProperty("科目")
    private String subject;
    @ApiModelProperty("当前闯的关卡号")
    private long presentBarrierDegree;
    @ApiModelProperty("答题结果列表")
    private List<QuestionResult> questionResultList ;

    @Data
    @ApiModel("答题结果")
    public static class QuestionResult{
        @ApiModelProperty("问题id")
        private String questionId;
        @ApiModelProperty("答题情况(1:true; 0:wrong)")
        private byte result;
    }
}
